Page({
  data: {
    museums: [
      {
        id: 1,
        name: '黑砂博物馆',
        address: '四川省雅安市荥经县六合乡古城村',
        imageUrl: '/static/images/museum/heisha.jpg'
      },
      {
        id: 2,
        name: '中国藏茶村',
        address: '四川省雅安市雨城区多营镇中国藏茶村',
        imageUrl: '/static/images/museum/zangcha.jpg'
      },
      {
        id: 3,
        name: '雅安茶厂"藏茶世界"',
        address: '四川省雅安市大兴镇农业园区1号',
        imageUrl: '/static/images/museum/chachang.jpg'
      },
      {
        id: 4,
        name: '跃华茶庄',
        address: '四川省雅安市名山区蒙顶大道56号',
        imageUrl: '/static/images/museum/yuehua.jpg'
      },
      {
        id: 5,
        name: '大自然金丝楠艺术馆',
        address: '四川省雅安市芦山县芦阳街道奥兴路',
        imageUrl: '/static/images/museum/jinsinan.jpg'
      },
      {
        id: 6,
        name: '蒙顶山茶史博物馆',
        address: '四川省雅安市名山区蒙阳镇',
        imageUrl: '/static/images/museum/mengding.jpg'
      },
      {
        id: 7,
        name: '藏茶博物馆',
        address: '雅安市雨城区大兴街道兴贸一路',
        imageUrl: '/static/images/museum/zangcha_museum.jpg'
      }
    ]
  },

  onLoad() {
    // 页面加载时的初始化逻辑
  },

  onMuseumTap(e) {
    const museumId = e.currentTarget.dataset.id;
    // 跳转到展馆详情页面
    wx.navigateTo({
      url: `/pages/museum/detail?id=${museumId}`
    });
  }
})